import request from "@/utils/request";

// 获取图片列表
export const getImages = () => {
  return request.get("/api/images");
};

// 获取轮播图列表
export function getBannerList(createId) {
  return request.get("/media/list", {
    params: { createId },
  });
}

// //获取用户喜欢的二十张图片
// export function getUserLikeImagesService_Old(userId) {
//   return request.get("/media/listUserLike", {
//     params: { userId },
//   });
// }

//获取用户喜欢图片
export function getUserLikeImagesService() {
  return request.get("/user-like/getUserLikeNew", {
    params: { mediaType: "image" },
  });
}

// //获取用户喜欢的二十个视频
// export function getUserLikeVideosService_Old(userId) {
//   return request.get("/media/listUserLikeVideo", {
//     params: { userId },
//   });
// }

//获取用户喜欢的二十个视频
export function getUserLikeVideosService() {
  return request.get("/user-like/getUserLikeNew", {
    params: { mediaType: "video" },
  });
}
